package com.hntest;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * SpringBoot启动类
 *
 * @author ASUS
 */
@SpringBootApplication/*(exclude = {DataSourceAutoConfiguration.class})*/ //springBoot启动类
//@ComponentScan(basePackages = "com.hntest") //扫描IOC注解包
@EnableTransactionManagement//开启事务管理
@MapperScan("com.hntest.dao")//扫描映射文件
public class SpringBootApp {

    public static void main(String[] args) {
        SpringApplication.run(SpringBootApp.class, args);

    }

}




